<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>

<input type="text" name="" id="inp">
<div id="box" style="position: relative;"></div>

<script src="jquery.js"></script>
<script src="datepicker.js"></script>
<script>
DatePicker.init({
    parent:'#box',     //日历选择器所在位置
    target:'#inp'	   //目标元素
},function(res){
    console.log(res)   //点击确认后的回调
})


</script>
</body>
</html>